package com.hotel.mapper;

import com.hotel.pojo.Room;
import com.hotel.pojo.RoomNumber;
import com.hotel.pojo.RoomState;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author YanMin
 * @version 1.0
 * @description:
 * @since 2022/8/16 19:59
 */
public interface RoomMapper {
    //查询
    List<Room> selectRoom(@Param("roomId") String roomId);

    //查询房间类型做可视化
    List<RoomNumber> selectRoomNumber();

    //查询房间状态可视化
    List<RoomState> selectRoomState();

    //添加
    Integer insertRoom(Room room);

    //删除
    Integer deleteRoomByRoomId(Integer roomId);

    //修改
    Integer updateRoomByRoomId(Room room);

}
